package com.zx.mes.hyl.factory;

/**
 * 简单工厂模式
 *
 * @author huayunlong
 * @date 2018-9-3
 */
public class ScanFactory {

    public static ScanBar getInstance(int i){
        if (i == 1) {
            return new Bargun();
        }else{
            return new Rfid();
        }

    }

}
